package cn.rubintry.calculator

import android.widget.TextView


interface IModule<T : Number> {

    var textView : TextView?

    fun add(other: IModule<T>) : String

    fun subtract(other: IModule<T>) : String

    fun multiply(other: IModule<T>, scale: Int = 0) : String

    fun divide(other: IModule<T>, scale: Int = 0): String

    fun appendUnit(unit: String)

    fun getNumberFromView() : String

    override fun toString() : String
}
